package cn.itsource.celljava.system.employee.controller;

import cn.itsource.celljava.system.employee.service.IEmployeeService;
import cn.itsource.celljava.system.employee.domain.Employee;
import cn.itsource.celljava.system.employee.query.EmployeeQuery;
import cn.itsource.celljava.utils.AjaxResult;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@RestController
@RequestMapping("/emp")
public class EmployeeController {
    @Autowired
    private IEmployeeService employeeService;

    @GetMapping("/list")
    @ApiOperation(value = "获取全部员工信息")
    public List<Employee> findAll() {
        return employeeService.findAllBo();
    }
}
